<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<link href="<s:url value="/css/main.css"/>" rel="stylesheet" type="text/css"/>
		
		<title>Login</title>
	</head>
	<body>
		<!-- user register -->
		<div align="rigth"><a href="register">Register</a></div>
		<s:form action="doLogin" method="POST"> 
			<tr>
				<td colspan="2">Login</td>
			</tr>
			<tr>
				<td colspan="2">
					<s:actionerror />
					<s:fielderror />
				</td>
			</tr>
			<s:textfield name="username" label="Login name"/>
			<s:password name="password" label="Password"/>
			<s:submit value="Login" align="center"/> 
		</s:form>
		<br>
		<a href="index">Back to Index page</a>
	</body>
</html>